package com.tianshu.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tianshu.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 审批记录主表
 * </p>
 *
 * @author liaojie
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_approval_record")
public class TApprovalRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 机构号
     */
    private String bankCode;

    /**
     * 代码版本
     */
    private String version;

    /**
     * 创建人
     */
    private String createUserId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String updateUserId;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 进件条码
     */
    private String applyNo;

    /**
     * 审批结果
     */
    private String approvalResult;

    /**
     * 批核金额
     */
    private String approvalAmount;

    private String approvalCode;

    /**
     * 审批意见
     */
    private String approvalOpinion;

    /**
     * 审批人
     */
    private String approvalUserId;

    /**
     * 审批节点
     */
    private String approvalStage;

    /**
     * 审批业务数据
     */
    private String approvalJson;

    private Integer multiLevel;

    private String positionId;


    public static final String ID = "id";

    public static final String BANK_CODE = "bank_code";

    public static final String VERSION = "version";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER_ID = "update_user_id";

    public static final String UPDATE_TIME = "update_time";

    public static final String APPLY_NO = "apply_no";

    public static final String APPROVAL_RESULT = "approval_result";

    public static final String APPROVAL_AMOUNT = "approval_amount";

    public static final String APPROVAL_CODE = "approval_code";

    public static final String APPROVAL_OPINION = "approval_opinion";

    public static final String APPROVAL_USER_ID = "approval_user_id";

    public static final String APPROVAL_STAGE = "approval_stage";

    public static final String APPROVAL_JSON = "approval_json";

    public static final String MULTI_LEVEL = "multi_level";

    public static final String POSITION_ID = "position_id";

}
